package com.sixth.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sixth.core.entity.Menu;
import com.sixth.core.vo.R;

import java.util.List;

/**
 * @program: sixth-hospital-parent
 * @description:
 * @author: 李劲锋
 * @create: 2024-08-12 17:10
 **/
public interface MenuMapper extends BaseMapper<Menu> {
    List<Menu> queryByUserId(Long userId);
    List<Menu> selectLeftMenu(String username);
    List<Menu> selectMenusByRoleId(Long roleId);

    R saveRoleMenu(Long roleId,Long menuId);
}
